<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort() + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
    <script src="resources/js/base.js"></script>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	      <title>在线课件</title>
</head>
<body>
		<%@ include file="../../common/navbar.jsp"%>	
<div class="container">
	<c:if test="${not empty tip_error }">
		<div class="alert alert-danger  center-block">
			<strong>警告!</strong> ${tip_error}
		</div>
	</c:if>
	<c:if test="${not empty tip_info }">
		<div class="alert alert-success  center-block">
			<strong>提示!</strong> ${tip_info}
		</div>
	</c:if>
	<div class="panel panel-default">
		<div class="panel-heading">添加书籍</div>
		<div class="panel-body">
		<table class="table">
	<form class="form-horizontal" action="courseadd" method="post">
  
    <label >课件ID</label><span style="color: red">*(此字段唯一)</span>
    <input name="tid" type="text"  class="form-control">

  	<label>父级菜单</label>
	<select class="form-control" name="pid" >
							<c:forEach var="treelist" items="${treelist}" varStatus="status">
										<option value="${treelist.tid }">${treelist.name}</option>									
							</c:forEach>
							<option>----------无父菜单---------</option>
    </select>
	
 <div class="form-group">
    <label >节点名</label><span style="color: red">*</span>
    <input name="name" type="text"  class="form-control">
  </div>
   <div class="form-group">
    <label>题目</label>
    <input name="title" type="text" class="form-control">
  </div>
   <div class="form-group">
    <label>代码块</label>
    <textarea rows="5" cols="150" class="form-control" name="code" type="text"></textarea>
  </div>
   <div class="form-group">
    <label>内容</label>
  <textarea rows="5" cols="150" class="form-control" name="content" type="text"></textarea>
  </div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>
</table>
		</div>
	</div>
</div>
<script type="text/javascript">
 
</script>
</body>
</html>